import request from '@/utils/request'

// 查询职别基数列表
export function listCategory(query) {
  return request({
    url: '/cld/category/list',
    method: 'get',
    params: query
  })
}

// 查询职别基数列表
export function getListCategory(query) {
  return request({
    url: '/cld/category/getList',
    method: 'get',
    params: query
  })
}

// 查询职别基数详细
export function getCategory(jobCategoryId) {
  return request({
    url: '/cld/category/' + jobCategoryId,
    method: 'get'
  })
}

// 新增职别基数
export function addCategory(data) {
  return request({
    url: '/cld/category',
    method: 'post',
    data: data
  })
}

// 修改职别基数
export function updateCategory(data) {
  return request({
    url: '/cld/category',
    method: 'put',
    data: data
  })
}

// 删除职别基数
export function delCategory(jobCategoryId) {
  return request({
    url: '/cld/category/' + jobCategoryId,
    method: 'delete'
  })
}
